package com.kxmall.web.controller.group.service;

import com.kxmall.group.domain.KxGroupShop;
import com.kxmall.group.domain.vo.KxGroupShopVo;
import com.kxmall.group.domain.bo.KxGroupShopBo;
import com.kxmall.common.core.page.TableDataInfo;
import com.kxmall.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 团购Service接口
 *
 * @author kxmall
 * @date 2023-10-07
 */
public interface IKxGroupShopService {

    /**
     * 查询团购
     */
    KxGroupShopVo queryById(Long id);

    /**
     * 查询团购列表
     */
    TableDataInfo<KxGroupShopVo> queryPageList(KxGroupShopBo bo, PageQuery pageQuery);

    /**
     * 查询团购列表
     */
    List<KxGroupShopVo> queryList(KxGroupShopBo bo);

    /**
     * 新增团购
     */
    Boolean insertByBo(KxGroupShopBo bo);

    /**
     * 修改团购
     */
    Boolean updateByBo(KxGroupShopBo bo);

    /**
     * 校验并批量删除团购信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
